
/******************************************************************************
*@file  : main.c
*@brief : main program
******************************************************************************/

#include "main.h" 
#include "app.h"   

/******************************************************************************
*@brief : main program
*@param : none
*@return: none
******************************************************************************/
int main(void)
{
	HAL_Init();  
    SystemClock_Config(SYSCLK_180M_SRC_RC64M, RCC_PCLK1_DIV_1, RCC_PCLK2_DIV_1);   
    
    BSP_UART_Init(UART1);  
	
	printfS("\r\n\r\n");
	printfS("************************************************************\r\n\r\n");
    printfS("system startup\r\n");
	printfS("Firmware was created in %s %s \n", __DATE__, __TIME__);
	get_reset_source();
    BSP_MCO_Init(RCC_MCO_HCLK, 10);
    
	printfS("HCK: %u\r\n", HAL_RCC_GetHCLKFreq());
	printfS("PCLK1: %u\r\n", HAL_RCC_GetPCLK1Freq());
	printfS("PCLK2: %u\r\n", HAL_RCC_GetPCLK2Freq());
    printfS("\r\n");
	printfS("************************************************************\r\n\r\n");
	

    APP_Test();
    
    while(1)
    {
    
    }
}














